package cn.gzmli.dtt.common.entity;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 
 * Title:Permission 
 * Description: 权限model
 * @author:superKing_zhanglh
 * @date 2018年4月3日
 */
@Entity
@Table(name = "permission")
public class Permission implements Serializable{

	private static final long serialVersionUID = 1L;
    private Integer id;
    private Integer menu_id;
    private String permission_name;
    private String permission_code;
    private Integer pId;
    
    @Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "menu_id", nullable = false)
	public Integer getMenu_id() {
		return menu_id;
	}
	public void setMenu_id(Integer menu_id) {
		this.menu_id = menu_id;
	}
	@Column(name = "permission_name", nullable = false)
	public String getPermission_name() {
		return permission_name;
	}
	public void setPermission_name(String permission_name) {
		this.permission_name = permission_name;
	}
	@Column(name = "permission_code", nullable = false)
	public String getPermission_code() {
		return permission_code;
	}
	public void setPermission_code(String permission_code) {
		this.permission_code = permission_code;
	}
	@Column(name = "pId")
	public Integer getpId() {
		return pId;
	}
	public void setpId(Integer pId) {
		this.pId = pId;
	}
    
	
    
}
